package com.team.RunsFast_Api.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.runsfast.entity.Address;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface AddressDao extends BaseMapper<Address> {
    @Update("update t_address set flag=2 where id!=#{id} and flag=1")
    int updateFlag(long id);
}
